<?php

trait Log
{
    public function save()
    {
        return __METHOD__;
    }
}

trait Comment
{
    public function total()
    {
        return __METHOD__;
    }
}

class Site {
    public function total()
    {
        return 200;
    }
}
class Topic extends Site
{
    use Log, Comment;
   /* public function total()
    {
        return 100;
    }*/
}
$topic = new Topic();
echo $topic->save();
echo $topic->total();